/*
测试条件连接符的用法
*/
public class TestOperator06 {
	public static void main(String[] args){
		int score = 90;
		/*String a = score<60?"不及格":"及格";
		System.out.println(score);
		System.out.println(a);
		String a;
		
		if(score<60){
			a = "不及格";
	}else{
			a = "及格";}
		System.out.println(a);*/
		int x = -100;
		int flag = x > 0 ? 1 : (x == 0 ? 0 : -1);
		System.out.println(flag);
		
}
}